package com.neusoft.entity;

import java.util.ArrayList;
import java.util.List;

public class OperatorExample {
	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public OperatorExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andOIdIsNull() {
			addCriterion("o_id is null");
			return (Criteria) this;
		}

		public Criteria andOIdIsNotNull() {
			addCriterion("o_id is not null");
			return (Criteria) this;
		}

		public Criteria andOIdEqualTo(Integer value) {
			addCriterion("o_id =", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdNotEqualTo(Integer value) {
			addCriterion("o_id <>", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdGreaterThan(Integer value) {
			addCriterion("o_id >", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdGreaterThanOrEqualTo(Integer value) {
			addCriterion("o_id >=", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdLessThan(Integer value) {
			addCriterion("o_id <", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdLessThanOrEqualTo(Integer value) {
			addCriterion("o_id <=", value, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdIn(List<Integer> values) {
			addCriterion("o_id in", values, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdNotIn(List<Integer> values) {
			addCriterion("o_id not in", values, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdBetween(Integer value1, Integer value2) {
			addCriterion("o_id between", value1, value2, "oId");
			return (Criteria) this;
		}

		public Criteria andOIdNotBetween(Integer value1, Integer value2) {
			addCriterion("o_id not between", value1, value2, "oId");
			return (Criteria) this;
		}

		public Criteria andOAccountIsNull() {
			addCriterion("o_account is null");
			return (Criteria) this;
		}

		public Criteria andOAccountIsNotNull() {
			addCriterion("o_account is not null");
			return (Criteria) this;
		}

		public Criteria andOAccountEqualTo(String value) {
			addCriterion("o_account =", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountNotEqualTo(String value) {
			addCriterion("o_account <>", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountGreaterThan(String value) {
			addCriterion("o_account >", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountGreaterThanOrEqualTo(String value) {
			addCriterion("o_account >=", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountLessThan(String value) {
			addCriterion("o_account <", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountLessThanOrEqualTo(String value) {
			addCriterion("o_account <=", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountLike(String value) {
			addCriterion("o_account like", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountNotLike(String value) {
			addCriterion("o_account not like", value, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountIn(List<String> values) {
			addCriterion("o_account in", values, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountNotIn(List<String> values) {
			addCriterion("o_account not in", values, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountBetween(String value1, String value2) {
			addCriterion("o_account between", value1, value2, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOAccountNotBetween(String value1, String value2) {
			addCriterion("o_account not between", value1, value2, "oAccount");
			return (Criteria) this;
		}

		public Criteria andOPasswordIsNull() {
			addCriterion("o_password is null");
			return (Criteria) this;
		}

		public Criteria andOPasswordIsNotNull() {
			addCriterion("o_password is not null");
			return (Criteria) this;
		}

		public Criteria andOPasswordEqualTo(String value) {
			addCriterion("o_password =", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordNotEqualTo(String value) {
			addCriterion("o_password <>", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordGreaterThan(String value) {
			addCriterion("o_password >", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordGreaterThanOrEqualTo(String value) {
			addCriterion("o_password >=", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordLessThan(String value) {
			addCriterion("o_password <", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordLessThanOrEqualTo(String value) {
			addCriterion("o_password <=", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordLike(String value) {
			addCriterion("o_password like", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordNotLike(String value) {
			addCriterion("o_password not like", value, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordIn(List<String> values) {
			addCriterion("o_password in", values, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordNotIn(List<String> values) {
			addCriterion("o_password not in", values, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordBetween(String value1, String value2) {
			addCriterion("o_password between", value1, value2, "oPassword");
			return (Criteria) this;
		}

		public Criteria andOPasswordNotBetween(String value1, String value2) {
			addCriterion("o_password not between", value1, value2, "oPassword");
			return (Criteria) this;
		}

		public Criteria andONameIsNull() {
			addCriterion("o_name is null");
			return (Criteria) this;
		}

		public Criteria andONameIsNotNull() {
			addCriterion("o_name is not null");
			return (Criteria) this;
		}

		public Criteria andONameEqualTo(String value) {
			addCriterion("o_name =", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameNotEqualTo(String value) {
			addCriterion("o_name <>", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameGreaterThan(String value) {
			addCriterion("o_name >", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameGreaterThanOrEqualTo(String value) {
			addCriterion("o_name >=", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameLessThan(String value) {
			addCriterion("o_name <", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameLessThanOrEqualTo(String value) {
			addCriterion("o_name <=", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameLike(String value) {
			addCriterion("o_name like", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameNotLike(String value) {
			addCriterion("o_name not like", value, "oName");
			return (Criteria) this;
		}

		public Criteria andONameIn(List<String> values) {
			addCriterion("o_name in", values, "oName");
			return (Criteria) this;
		}

		public Criteria andONameNotIn(List<String> values) {
			addCriterion("o_name not in", values, "oName");
			return (Criteria) this;
		}

		public Criteria andONameBetween(String value1, String value2) {
			addCriterion("o_name between", value1, value2, "oName");
			return (Criteria) this;
		}

		public Criteria andONameNotBetween(String value1, String value2) {
			addCriterion("o_name not between", value1, value2, "oName");
			return (Criteria) this;
		}

		public Criteria andOSexIsNull() {
			addCriterion("o_sex is null");
			return (Criteria) this;
		}

		public Criteria andOSexIsNotNull() {
			addCriterion("o_sex is not null");
			return (Criteria) this;
		}

		public Criteria andOSexEqualTo(Integer value) {
			addCriterion("o_sex =", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexNotEqualTo(Integer value) {
			addCriterion("o_sex <>", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexGreaterThan(Integer value) {
			addCriterion("o_sex >", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexGreaterThanOrEqualTo(Integer value) {
			addCriterion("o_sex >=", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexLessThan(Integer value) {
			addCriterion("o_sex <", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexLessThanOrEqualTo(Integer value) {
			addCriterion("o_sex <=", value, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexIn(List<Integer> values) {
			addCriterion("o_sex in", values, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexNotIn(List<Integer> values) {
			addCriterion("o_sex not in", values, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexBetween(Integer value1, Integer value2) {
			addCriterion("o_sex between", value1, value2, "oSex");
			return (Criteria) this;
		}

		public Criteria andOSexNotBetween(Integer value1, Integer value2) {
			addCriterion("o_sex not between", value1, value2, "oSex");
			return (Criteria) this;
		}

		public Criteria andOEmailIsNull() {
			addCriterion("o_email is null");
			return (Criteria) this;
		}

		public Criteria andOEmailIsNotNull() {
			addCriterion("o_email is not null");
			return (Criteria) this;
		}

		public Criteria andOEmailEqualTo(String value) {
			addCriterion("o_email =", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailNotEqualTo(String value) {
			addCriterion("o_email <>", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailGreaterThan(String value) {
			addCriterion("o_email >", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailGreaterThanOrEqualTo(String value) {
			addCriterion("o_email >=", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailLessThan(String value) {
			addCriterion("o_email <", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailLessThanOrEqualTo(String value) {
			addCriterion("o_email <=", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailLike(String value) {
			addCriterion("o_email like", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailNotLike(String value) {
			addCriterion("o_email not like", value, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailIn(List<String> values) {
			addCriterion("o_email in", values, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailNotIn(List<String> values) {
			addCriterion("o_email not in", values, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailBetween(String value1, String value2) {
			addCriterion("o_email between", value1, value2, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOEmailNotBetween(String value1, String value2) {
			addCriterion("o_email not between", value1, value2, "oEmail");
			return (Criteria) this;
		}

		public Criteria andOPhoneIsNull() {
			addCriterion("o_phone is null");
			return (Criteria) this;
		}

		public Criteria andOPhoneIsNotNull() {
			addCriterion("o_phone is not null");
			return (Criteria) this;
		}

		public Criteria andOPhoneEqualTo(String value) {
			addCriterion("o_phone =", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneNotEqualTo(String value) {
			addCriterion("o_phone <>", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneGreaterThan(String value) {
			addCriterion("o_phone >", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneGreaterThanOrEqualTo(String value) {
			addCriterion("o_phone >=", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneLessThan(String value) {
			addCriterion("o_phone <", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneLessThanOrEqualTo(String value) {
			addCriterion("o_phone <=", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneLike(String value) {
			addCriterion("o_phone like", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneNotLike(String value) {
			addCriterion("o_phone not like", value, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneIn(List<String> values) {
			addCriterion("o_phone in", values, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneNotIn(List<String> values) {
			addCriterion("o_phone not in", values, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneBetween(String value1, String value2) {
			addCriterion("o_phone between", value1, value2, "oPhone");
			return (Criteria) this;
		}

		public Criteria andOPhoneNotBetween(String value1, String value2) {
			addCriterion("o_phone not between", value1, value2, "oPhone");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}